package ru.urfc.portal.ui.client.model.catalogs.booleans;

import ru.urfc.portal.ui.client.Style;

public abstract class ClientAccessEnabled extends BooleanCatalogItem {

	static public final ClientAccessEnabled ENABLED = new ClientAccessEnabled(true, "разрешен", "Доступ разрешен") {
		@Override
		public String getStyleName(Style style) {
			return style.clientAccessEnabled();
		}
	};

	static public final ClientAccessEnabled DISABLED = new ClientAccessEnabled(false, "запрещен", "Доступ запрещен") {
		@Override
		public String getStyleName(Style style) {
			return style.clientAccessDisabled();
		}
	};

	static public ClientAccessEnabled[] values = {ENABLED, DISABLED}; 

	protected ClientAccessEnabled(Boolean code, String text, String fullText) {
		super(code, text, fullText);
	}
	
}
